﻿using Ninject;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using Wicresoft.EKA.MVCExtensions;
using Wicresoft.EKA.ITSM.Business;

namespace Wicresoft.EKA.ITSM.Web.WebPortal.Controllers
{
    public class ExampleAPIController : BaseAPIController
    {

        [Inject]
        public override IUserInfo UserInfo { get; set; }  //每个Controller必须包含的。

        protected override void Init()
        {
            base.Init();
        }

        protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);
        }

        // GET api/values/5
        [PermissionAPI(Users="wangjibin,")]
        public string GetByID(string id)
        {
            Init();// //每个API Controller的Action必须包含的。
            //获取Approver List 逻辑
            string ids = "";
            return ids;
        }
    }
}
